package com.yuyu.common.result;

/**
 * @author yuyu
 * @date 2018/12/27
 */
public enum ResultCode {
    SUCCESS(0, "成功"),
    NOT_LOGIN(101, "未登录"),
    BAD_REQUEST(102, "非法请求"),
    ERROR(500, "系统异常");

    private int code;
    private String msg;

    private ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
